package com.zzy.test;

import java.io.IOException;

import weibo4j.Timeline;
import weibo4j.http.ImageItem;
import weibo4j.model.WeiboException;

public class UploadWeiBo {

	public static void main(String[] args) throws IOException, WeiboException {
		byte[] buffer = CopyWeibo.readFileImageFromUrl("http://ww3.sinaimg.cn/bmiddle/8245bf01jw1dxws6qnxcfj.jpg");
		ImageItem pic = new ImageItem("pic",buffer);
		
		Timeline t = new Timeline();
		t.client.setToken("2.00RxiAbBgrdWgDb292c14f92eLO7CB");
		t.UploadStatus(java.net.URLEncoder.encode("色系军团","utf-8"), pic);

	}
	
	

}
